package com.quick.base;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class Search<T> {
	@ApiModelProperty(value = "页数")
	private Integer pageNum = 1;
	@ApiModelProperty(value = "行数")
	private Integer pageSize = 10;
	private  T search;
	public void setPageNum(Integer pageNum) {
		if(pageNum == 0) {
			pageNum = 1;
		}
		this.pageNum = pageNum;
	}
	public void setPageSize(Integer pageSize) {
		if(pageSize == 0) {
			pageSize = 10;
		}
		this.pageSize = pageSize;
	}
	

}
